import request from '@/utils/request'

// 查询存储单元的列表
export function listUnit(query) {
  return request({
    url: '/Unit/Unit/list',
    method: 'get',
    params: query
  })
}

// 查询存储单元的详细
export function getUnit(uid) {
  return request({
    url: '/Unit/Unit/' + uid,
    method: 'get'
  })
}

// 新增存储单元的
export function addUnit(data) {
  return request({
    url: '/Unit/Unit',
    method: 'post',
    data: data
  })
}

// 修改存储单元的
export function updateUnit(data) {
  return request({
    url: '/Unit/Unit',
    method: 'put',
    data: data
  })
}

// 删除存储单元的
export function delUnit(uid) {
  return request({
    url: '/Unit/Unit/' + uid,
    method: 'delete'
  })
}

//查询课程的
export function  getCourse(){
  return request({
    url: '/Util/Util/CourseList',
    method: 'get'
  })
}

